STEP 9: Just like other values, return values need to be stored in a variable!

When we use a return statement, we always store the result of the function call in a return variable.

  • Find the stick_person(-100,·0,·"purple") function call line in your code.
  • Add person1 = at the beginning so the code says person1 = stick_person(-100, 0, "purple").
  • The return variable person1 is storing the list of shape sprites returned from the stick_figure() function!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)